package com.kakarote.oa.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 日志模板扩展字段数据表
 *
 * @TableName wk_oa_log_template_data
 */
@TableName(value = "wk_oa_log_data")
@Data
public class OaLogData implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "字段id")
    private Long fieldId;

    @ApiModelProperty(value = "数据id")
    private Long dataId;

    @ApiModelProperty(value = "字段名称")
    private String name;

    @ApiModelProperty(value = "值")
    @TableField(value = "`value`")
    private String value;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


    @ApiModelProperty(value = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty(value = "修改人ID")
    @TableField(fill = FieldFill.UPDATE)
    private Long updateUserId;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

}